package com.yj.ccs.abs.common.enums;

/**
 * Copyright 2018 (C) Yunjian-VC
 * Created on : 2018/3/22
 * Author     : Unbelievable9
 **/
public enum RemarkType {

    /**
     * 1 - 执行费用
     * 2 - 涉及诉讼
     * 3 - 涉及仲裁
     * 4 - 其他
     */
    EXECUTION(1),
    ARBITRATION_RELATED(2),
    LITIGATION_RELATED(3),
    OTHER(4);

    private Integer value;

    RemarkType(Integer value) {
        this.value = value;
    }

    public Integer getValue() {
        return value;
    }

    public static RemarkType fromValue(Integer value) {
        for (RemarkType remarkType : RemarkType.values()) {
            if (remarkType.getValue().equals(value)) {
                return remarkType;
            }
        }

        return null;
    }
}
